package com.java.demo.concurrent;

import java.util.concurrent.ArrayBlockingQueue;

public class ArrayBlockingQueueDemo {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue queue = new ArrayBlockingQueue(10);
        queue.add(10);
        queue.offer(10);
        queue.take();
    }
}
